{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e19.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Sep 2016, 11:45:39
{txt}
{com}. clear 
{txt}
{com}. set more off
{txt}
{com}. use "secret open.dta"
{txt}
{com}. 
. sem (d <-  t  wl p)(p <-  t  wl) 
{res}{txt}(13 observations with missing values excluded)

Endogenous variables

{p 0 11 2}Observed:{space 2}{res}d p{p_end}
{txt}
Exogenous variables

{p 0 11 2}Observed:{space 2}{res}t wl{p_end}
{txt}
Fitting target model:

Iteration 0:{space 3}log likelihood = {res:-507.04378}  
Iteration 1:{space 3}log likelihood = {res:-507.04378}  

Structural equation model{col 49}Number of obs{col 67}= {res}       296
{col 1}{txt}Estimation method{col 20}= {res}ml
{col 1}{txt}Log likelihood{col 20}= {res}-507.04378

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4701812{col 26}{space 2} .0562385{col 37}{space 1}    8.36{col 46}{space 3}0.000{col 54}{space 4} .3599558{col 67}{space 3} .5804067
{txt}{space 11}t {c |}{col 14}{res}{space 2} -.061397{col 26}{space 2} .0356856{col 37}{space 1}   -1.72{col 46}{space 3}0.085{col 54}{space 4}-.1313395{col 67}{space 3} .0085455
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2532429{col 26}{space 2} .0472523{col 37}{space 1}    5.36{col 46}{space 3}0.000{col 54}{space 4} .1606302{col 67}{space 3} .3458556
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}  .309557{col 26}{space 2} .0320163{col 37}{space 1}    9.67{col 46}{space 3}0.000{col 54}{space 4} .2468062{col 67}{space 3} .3723078
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}  .107344{col 26}{space 2} .0363503{col 37}{space 1}    2.95{col 46}{space 3}0.003{col 54}{space 4} .0360986{col 67}{space 3} .1785894
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3177495{col 26}{space 2} .0452094{col 37}{space 1}    7.03{col 46}{space 3}0.000{col 54}{space 4} .2291407{col 67}{space 3} .4063583
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .3220342{col 26}{space 2} .0272867{col 37}{space 1}   11.80{col 46}{space 3}0.000{col 54}{space 4} .2685533{col 67}{space 3} .3755152
{txt}{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
     var(e.d){c |}{col 14}{res}{space 2} .0915188{col 26}{space 2} .0075228{col 54}{space 4} .0779008{col 67}{space 3} .1075173
{txt}     var(e.p){c |}{col 14}{res}{space 2} .0977577{col 26}{space 2} .0080356{col 54}{space 4} .0832114{col 67}{space 3} .1148469
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
LR test of model vs. saturated: chi2({res:0})   = {res:     0.00}, Prob > chi2 = {res}     .
{txt}
{com}. estat ic

Akaike's information criterion and Bayesian information criterion

{txt}{hline 13}{c TT}{hline 63}
       Model {c |}        Obs  ll(null)  ll(model)      df         AIC        BIC
{hline 13}{c +}{hline 63}
{ralign 12:.}{col 14}{c |}{res}{col 16}       296{col 27}        .{col 38}-507.0438{col 49}     9{col 58} 1032.088{col 69} 1065.301
{txt}{hline 13}{c BT}{hline 63}
{p 15 21 2}
Note: N=Obs used in calculating BIC; see {helpb bic_note:[R] BIC note}.
{p_end}

{com}. estat teffects 
{res}

{txt}Direct effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4701812{col 26}{space 2} .0562385{col 37}{space 1}    8.36{col 46}{space 3}0.000{col 54}{space 4} .3599558{col 67}{space 3} .5804067
{txt}{space 11}t {c |}{col 14}{res}{space 2} -.061397{col 26}{space 2} .0356856{col 37}{space 1}   -1.72{col 46}{space 3}0.085{col 54}{space 4}-.1313395{col 67}{space 3} .0085455
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .2532429{col 26}{space 2} .0472523{col 37}{space 1}    5.36{col 46}{space 3}0.000{col 54}{space 4} .1606302{col 67}{space 3} .3458556
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}  .107344{col 26}{space 2} .0363503{col 37}{space 1}    2.95{col 46}{space 3}0.003{col 54}{space 4} .0360986{col 67}{space 3} .1785894
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3177495{col 26}{space 2} .0452094{col 37}{space 1}    7.03{col 46}{space 3}0.000{col 54}{space 4} .2291407{col 67}{space 3} .4063583
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Indirect effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 11}t {c |}{col 14}{res}{space 2} .0504711{col 26}{space 2} .0181261{col 37}{space 1}    2.78{col 46}{space 3}0.005{col 54}{space 4} .0149447{col 67}{space 3} .0859976
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .1493999{col 26}{space 2}   .02777{col 37}{space 1}    5.38{col 46}{space 3}0.000{col 54}{space 4} .0949717{col 67}{space 3}  .203828
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{space 10}wl {c |}{col 14}{res}{space 2}        0{col 26}{txt}  (no path)
{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}


Total effects
{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}      OIM
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}{res}Structural  {col 14}{txt}{c |}
{space 2}{col 3}d <-      {col 14}{c |}
{space 11}p {c |}{col 14}{res}{space 2} .4701812{col 26}{space 2} .0562385{col 37}{space 1}    8.36{col 46}{space 3}0.000{col 54}{space 4} .3599558{col 67}{space 3} .5804067
{txt}{space 11}t {c |}{col 14}{res}{space 2}-.0109259{col 26}{space 2} .0391041{col 37}{space 1}   -0.28{col 46}{space 3}0.780{col 54}{space 4}-.0875685{col 67}{space 3} .0657167
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .4026428{col 26}{space 2} .0486343{col 37}{space 1}    8.28{col 46}{space 3}0.000{col 54}{space 4} .3073214{col 67}{space 3} .4979642
{space 2}{txt}{hline 11}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 2}{col 3}p <-      {col 14}{c |}
{space 11}t {c |}{col 14}{res}{space 2}  .107344{col 26}{space 2} .0363503{col 37}{space 1}    2.95{col 46}{space 3}0.003{col 54}{space 4} .0360986{col 67}{space 3} .1785894
{txt}{space 10}wl {c |}{col 14}{res}{space 2} .3177495{col 26}{space 2} .0452094{col 37}{space 1}    7.03{col 46}{space 3}0.000{col 54}{space 4} .2291407{col 67}{space 3} .4063583
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. *** indirect and direct - winning/losing
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <-  t  wl p)(p <-  t  wl) 
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indir  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end 
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indir) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       296
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .1493999{col 26}{space 2} .0284554{col 37}{space 1}    5.25{col 46}{space 3}0.000{col 54}{space 4} .0936283{col 67}{space 3} .2051714
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2} .4026428{col 26}{space 2} .0368391{col 37}{space 1}   10.93{col 46}{space 3}0.000{col 54}{space 4} .3304394{col 67}{space 3} .4748461
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       296
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indir)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .14939986{col 27}{space 2} .0010078{col 38}{space 2} .02845541{col 51}{space 2} .0999703{col 63}{space 1}  .209437{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0994185{col 63}{space 1} .2087177{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2} .40264276{col 27}{space 2} .0003022{col 38}{space 2} .03683913{col 51}{space 2} .3274639{col 63}{space 1} .4718878{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .3272812{col 63}{space 1} .4717337{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** indirect and direct - treatment
. cap program drop indireff
{txt}
{com}. program indireff, rclass
{txt}  1{com}. sem (d <- wl  t  p)(p <- wl  t )  
{txt}  2{com}.   estat teffects
{txt}  3{com}.   mat bi = r(indirect)
{txt}  4{com}.   mat bt = r(total)
{txt}  5{com}.   return scalar indirect  = el(bi,1,3)
{txt}  6{com}.   return scalar total  = el(bt,1,3)
{txt}  7{com}. end
{txt}
{com}. 
. set seed 358395
{txt}
{com}. bootstrap r(indirect) r(total), reps(1000): indireff
{txt}(running indireff on estimation sample)

Bootstrap replications ({res}1000{txt})
{hline 4}{c +}{hline 3} 1 {hline 3}{c +}{hline 3} 2 {hline 3}{c +}{hline 3} 3 {hline 3}{c +}{hline 3} 4 {hline 3}{c +}{hline 3} 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000
{res}
{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       296
{txt}{col 49}Replications{col 67}= {res}     1,000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{res}{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}   Observed{col 26}   Bootstrap{col 54}         Norm{col 67}al-based
{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      z{col 46}   P>|z|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 7}_bs_1 {c |}{col 14}{res}{space 2} .0504711{col 26}{space 2}  .017856{col 37}{space 1}    2.83{col 46}{space 3}0.005{col 54}{space 4} .0154739{col 67}{space 3} .0854683
{txt}{space 7}_bs_2 {c |}{col 14}{res}{space 2}-.0109259{col 26}{space 2} .0394931{col 37}{space 1}   -0.28{col 46}{space 3}0.782{col 54}{space 4}-.0883308{col 67}{space 3} .0664791
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. estat bootstrap, percentile bc  

{txt}Bootstrap results{col 49}Number of obs{col 67}= {res}       296
{txt}{col 49}Replications{col 67}= {res}      1000
{p2colset 7 17 21 2}{...}

{txt}{p2col :command:}indireff{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_1:}{res:r(indirect)}{p_end}
{p2colset 9 17 21 2}{...}
{p2col :_bs_2:}{res:r(total)}{p_end}

{col 1}{text}{hline 13}{c TT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 14}{text}{c |}    Observed{col 38}    Bootstrap
{col 14}{text}{c |}       Coef.{col 27}       Bias{col 38}    Std. Err.{col 51}  [95% Conf. Interval]
{col 1}{text}{hline 13}{c +}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 1}{text}       _bs_1{col 14}{c |}{result}{space 2} .05047113{col 27}{space 2}-.0007547{col 38}{space 2} .01785604{col 51}{space 2} .0177076{col 63}{space 1} .0875958{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2} .0191041{col 63}{space 1} .0900775{col 73}{text}  (BC)
{col 1}{text}       _bs_2{col 14}{c |}{result}{space 2}-.01092589{col 27}{space 2}-.0016523{col 38}{space 2} .03949305{col 51}{space 2}-.0962301{col 63}{space 1} .0633844{col 73}{text}   (P)
{col 14}{text}{c |}{col 51}{result}{space 2}-.0965872{col 63}{space 1}  .063115{col 73}{text}  (BC)
{col 1}{text}{hline 13}{c BT}{hline 12}{hline 11}{hline 13}{hline 12}{hline 10}{hline 6}
{col 0}(P){col 8}percentile confidence interval
{col 0}(BC){col 8}bias-corrected confidence interval

{com}. 
. *** randomization check
. reg  t  gender interest ideology , robust

{txt}Linear regression                               Number of obs     = {res}       283
                                                {txt}F(3, 279)         =  {res}     0.40
                                                {txt}Prob > F          = {res}    0.7530
                                                {txt}R-squared         = {res}    0.0042
                                                {txt}Root MSE          =    {res} .50251

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 14}{c |}{col 26}    Robust
{col 1}           t{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 6}gender {c |}{col 14}{res}{space 2}-.0074121{col 26}{space 2} .0315362{col 37}{space 1}   -0.24{col 46}{space 3}0.814{col 54}{space 4}-.0694912{col 67}{space 3} .0546671
{txt}{space 4}interest {c |}{col 14}{res}{space 2} .0529139{col 26}{space 2} .0983738{col 37}{space 1}    0.54{col 46}{space 3}0.591{col 54}{space 4}-.1407352{col 67}{space 3} .2465631
{txt}{space 4}ideology {c |}{col 14}{res}{space 2}-.0963621{col 26}{space 2} .1106447{col 37}{space 1}   -0.87{col 46}{space 3}0.385{col 54}{space 4}-.3141665{col 67}{space 3} .1214423
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} .5353135{col 26}{space 2} .0886535{col 37}{space 1}    6.04{col 46}{space 3}0.000{col 54}{space 4} .3607988{col 67}{space 3} .7098281
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}{txt}
{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}/Users/xpmiki/Dropbox/esaiasson/replicationData/e19.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Sep 2016, 11:47:28
{txt}{.-}
{smcl}
{txt}{sf}{ul off}